<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %>
<%@ taglib uri="http://www.springframework.org/tags" prefix="spring" %>

<html>
<head>
  <jsp:include page="templates/head.jsp" />
  <script type="text/javascript">
	$(document).ready(function() {
		$('#BookTabs').tabs();
		$('body').updateHtml();
	});	
  </script>
</head>
<body>
  <jsp:include page="templates/header.jsp" />
  <div id="ContentBox">
    <div id="BookTabs">
      <ul>
        <li><a href="#BookListBox"><c:out value="Lista" /></a></li>
        <li><a href="#BookActionBox"><c:out value="Akcje" /></a></li>
      </ul>
      <div id="BookListBox">
    	<c:forEach items="${books}" var="book">
          <a href="/book-app/book/${book.id}"><c:out value="${book.title}" /></a>
          <br />
    	</c:forEach>
      </div>
      <div id="BookActionBox">
      </div>
    </div>
  </div>
  <jsp:include page="templates/footer.jsp" />
</body>
</html>
